<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE GADTs #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE NoImplicitPrelude #-}</span><span>
</span><span id="line-4"></span><span class="hs-pragma">{-# LANGUAGE PolyKinds #-}</span><span>
</span><span id="line-5"></span><span class="hs-pragma">{-# LANGUAGE ScopedTypeVariables #-}</span><span>
</span><span id="line-6"></span><span class="hs-pragma">{-# LANGUAGE ConstraintKinds #-}</span><span>
</span><span id="line-7"></span><span class="hs-pragma">{-# LANGUAGE PatternSynonyms #-}</span><span>
</span><span id="line-8"></span><span class="hs-pragma">{-# LANGUAGE TypeOperators #-}</span><span>
</span><span id="line-9"></span><span>
</span><span id="line-10"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Module      :  Data.Typeable</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Copyright   :  (c) The University of Glasgow, CWI 2001--2004</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- License     :  BSD-style (see the file libraries/base/LICENSE)</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- Maintainer  :  libraries@haskell.org</span><span>
</span><span id="line-17"></span><span class="hs-comment">-- Stability   :  experimental</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-19"></span><span class="hs-comment">--</span><span>
</span><span id="line-20"></span><span class="hs-comment">-- The 'Typeable' class reifies types to some extent by associating type</span><span>
</span><span id="line-21"></span><span class="hs-comment">-- representations to types. These type representations can be compared,</span><span>
</span><span id="line-22"></span><span class="hs-comment">-- and one can in turn define a type-safe cast operation. To this end,</span><span>
</span><span id="line-23"></span><span class="hs-comment">-- an unsafe cast is guarded by a test for type (representation)</span><span>
</span><span id="line-24"></span><span class="hs-comment">-- equivalence. The module &quot;Data.Dynamic&quot; uses Typeable for an</span><span>
</span><span id="line-25"></span><span class="hs-comment">-- implementation of dynamics. The module &quot;Data.Data&quot; uses Typeable</span><span>
</span><span id="line-26"></span><span class="hs-comment">-- and type-safe cast (but not dynamics) to support the \&quot;Scrap your</span><span>
</span><span id="line-27"></span><span class="hs-comment">-- boilerplate\&quot; style of generic programming.</span><span>
</span><span id="line-28"></span><span class="hs-comment">--</span><span>
</span><span id="line-29"></span><span class="hs-comment">-- == Compatibility Notes</span><span>
</span><span id="line-30"></span><span class="hs-comment">--</span><span>
</span><span id="line-31"></span><span class="hs-comment">-- Since GHC 8.2, GHC has supported type-indexed type representations.</span><span>
</span><span id="line-32"></span><span class="hs-comment">-- &quot;Data.Typeable&quot; provides type representations which are qualified over this</span><span>
</span><span id="line-33"></span><span class="hs-comment">-- index, providing an interface very similar to the &quot;Typeable&quot; notion seen in</span><span>
</span><span id="line-34"></span><span class="hs-comment">-- previous releases. For the type-indexed interface, see &quot;Type.Reflection&quot;.</span><span>
</span><span id="line-35"></span><span class="hs-comment">--</span><span>
</span><span id="line-36"></span><span class="hs-comment">-- Since GHC 7.10, all types automatically have 'Typeable' instances derived.</span><span>
</span><span id="line-37"></span><span class="hs-comment">-- This is in contrast to previous releases where 'Typeable' had to be</span><span>
</span><span id="line-38"></span><span class="hs-comment">-- explicitly derived using the @DeriveDataTypeable@ language extension.</span><span>
</span><span id="line-39"></span><span class="hs-comment">--</span><span>
</span><span id="line-40"></span><span class="hs-comment">-- Since GHC 7.8, 'Typeable' is poly-kinded. The changes required for this might</span><span>
</span><span id="line-41"></span><span class="hs-comment">-- break some old programs involving 'Typeable'. More details on this, including</span><span>
</span><span id="line-42"></span><span class="hs-comment">-- how to fix your code, can be found on the</span><span>
</span><span id="line-43"></span><span class="hs-comment">-- &lt;https://gitlab.haskell.org/ghc/ghc/wikis/ghc-kinds/poly-typeable PolyTypeable wiki page&gt;</span><span>
</span><span id="line-44"></span><span class="hs-comment">--</span><span>
</span><span id="line-45"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-46"></span><span>
</span><span id="line-47"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Typeable</span><span>
</span><span id="line-48"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><span class="hs-comment">-- * The Typeable class</span></span><span>
</span><span id="line-49"></span><span>      </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier">Typeable</span></a></span><span>
</span><span id="line-50"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf"><span class="hs-identifier">typeOf</span></a></span><span>
</span><span id="line-51"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeRep"><span class="hs-identifier">typeRep</span></a></span><span>
</span><span id="line-52"></span><span>
</span><span id="line-53"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Propositional equality</span></span><span>
</span><span id="line-54"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~%3A"><span class="hs-operator">(:~:)</span></a></span><span class="hs-special">(</span><span class="annot"><a href="Data.Type.Equality.html#Refl"><span class="hs-identifier">Refl</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-55"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~~%3A"><span class="hs-operator">(:~~:)</span></a></span><span class="hs-special">(</span><span class="annot"><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier">HRefl</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-56"></span><span>
</span><span id="line-57"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Type-safe cast</span></span><span>
</span><span id="line-58"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#cast"><span class="hs-identifier">cast</span></a></span><span>
</span><span id="line-59"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#eqT"><span class="hs-identifier">eqT</span></a></span><span>
</span><span id="line-60"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#gcast"><span class="hs-identifier">gcast</span></a></span><span>                </span><span class="hs-comment">-- a generalisation of cast</span><span>
</span><span id="line-61"></span><span>
</span><span id="line-62"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Generalized casts for higher-order kinds</span></span><span>
</span><span id="line-63"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#gcast1"><span class="hs-identifier">gcast1</span></a></span><span>               </span><span class="hs-comment">-- :: ... =&gt; c (t a) -&gt; Maybe (c (t' a))</span><span>
</span><span id="line-64"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#gcast2"><span class="hs-identifier">gcast2</span></a></span><span>               </span><span class="hs-comment">-- :: ... =&gt; c (t a b) -&gt; Maybe (c (t' a b))</span><span>
</span><span id="line-65"></span><span>
</span><span id="line-66"></span><span>      </span><span class="annot"><span class="hs-comment">-- * A canonical proxy type</span></span><span>
</span><span id="line-67"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier">Proxy</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-68"></span><span>
</span><span id="line-69"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Type representations</span></span><span>
</span><span id="line-70"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier">TypeRep</span></a></span><span>
</span><span id="line-71"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#rnfTypeRep"><span class="hs-identifier">rnfTypeRep</span></a></span><span>
</span><span id="line-72"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#showsTypeRep"><span class="hs-identifier">showsTypeRep</span></a></span><span>
</span><span id="line-73"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#mkFunTy"><span class="hs-identifier">mkFunTy</span></a></span><span>
</span><span id="line-74"></span><span>
</span><span id="line-75"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Observing type representations</span></span><span>
</span><span id="line-76"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#funResultTy"><span class="hs-identifier">funResultTy</span></a></span><span>
</span><span id="line-77"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#splitTyConApp"><span class="hs-identifier">splitTyConApp</span></a></span><span>
</span><span id="line-78"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeRepArgs"><span class="hs-identifier">typeRepArgs</span></a></span><span>
</span><span id="line-79"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeRepTyCon"><span class="hs-identifier">typeRepTyCon</span></a></span><span>
</span><span id="line-80"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeRepFingerprint"><span class="hs-identifier">typeRepFingerprint</span></a></span><span>
</span><span id="line-81"></span><span>
</span><span id="line-82"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Type constructors</span></span><span>
</span><span id="line-83"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#TyCon"><span class="hs-identifier">I.TyCon</span></a></span><span>          </span><span class="hs-comment">-- abstract, instance of: Eq, Show, Typeable</span><span>
</span><span id="line-84"></span><span>                       </span><span class="hs-comment">-- For now don't export Module to avoid name clashes</span><span>
</span><span id="line-85"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#tyConPackage"><span class="hs-identifier">I.tyConPackage</span></a></span><span>
</span><span id="line-86"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#tyConModule"><span class="hs-identifier">I.tyConModule</span></a></span><span>
</span><span id="line-87"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#tyConName"><span class="hs-identifier">I.tyConName</span></a></span><span>
</span><span id="line-88"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#rnfTyCon"><span class="hs-identifier">I.rnfTyCon</span></a></span><span>
</span><span id="line-89"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#tyConFingerprint"><span class="hs-identifier">I.tyConFingerprint</span></a></span><span>
</span><span id="line-90"></span><span>
</span><span id="line-91"></span><span>      </span><span class="annot"><span class="hs-comment">-- * For backwards compatibility</span></span><span>
</span><span id="line-92"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf1"><span class="hs-identifier">typeOf1</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf2"><span class="hs-identifier">typeOf2</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf3"><span class="hs-identifier">typeOf3</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf4"><span class="hs-identifier">typeOf4</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf5"><span class="hs-identifier">typeOf5</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf6"><span class="hs-identifier">typeOf6</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.html#typeOf7"><span class="hs-identifier">typeOf7</span></a></span><span>
</span><span id="line-93"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-94"></span><span>
</span><span id="line-95"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html"><span class="hs-identifier">Data.Typeable.Internal</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">I</span></span><span>
</span><span id="line-96"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html"><span class="hs-identifier">Data.Typeable.Internal</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier">Typeable</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-97"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Type.Equality.html"><span class="hs-identifier">Data.Type.Equality</span></a></span><span>
</span><span id="line-98"></span><span>
</span><span id="line-99"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Maybe.html"><span class="hs-identifier">Data.Maybe</span></a></span><span>
</span><span id="line-100"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Proxy.html"><span class="hs-identifier">Data.Proxy</span></a></span><span>
</span><span id="line-101"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Fingerprint.Type.html"><span class="hs-identifier">GHC.Fingerprint.Type</span></a></span><span>
</span><span id="line-102"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Show.html"><span class="hs-identifier">GHC.Show</span></a></span><span>
</span><span id="line-103"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Base.html"><span class="hs-identifier">GHC.Base</span></a></span><span>
</span><span id="line-104"></span><span>
</span><span id="line-105"></span><span class="hs-comment">-- | A quantified type representation.</span><span>
</span><span id="line-106"></span><span class="hs-keyword">type</span><span> </span><span id="TypeRep"><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-var">TypeRep</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span>
</span><span id="line-107"></span><span>
</span><span id="line-108"></span><span class="hs-comment">-- | Observe a type representation for the type of a value.</span><span>
</span><span id="line-109"></span><span class="annot"><a href="Data.Typeable.html#typeOf"><span class="hs-identifier hs-type">typeOf</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536411"><span class="annot"><a href="#local-6989586621679536411"><span class="hs-identifier hs-type">a</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536411"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536411"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-110"></span><span id="typeOf"><span class="annot"><span class="annottext">typeOf :: forall a. Typeable a =&gt; a -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf"><span class="hs-identifier hs-var hs-var">typeOf</span></a></span></span><span> </span><span class="annot"><span class="annottext">a
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy a -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy a
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536411"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-111"></span><span>
</span><span id="line-112"></span><span class="hs-comment">-- | Takes a value of type @a@ and returns a concrete representation</span><span>
</span><span id="line-113"></span><span class="hs-comment">-- of that type.</span><span>
</span><span id="line-114"></span><span class="hs-comment">--</span><span>
</span><span id="line-115"></span><span class="hs-comment">-- @since 4.7.0.0</span><span>
</span><span id="line-116"></span><span class="annot"><a href="Data.Typeable.html#typeRep"><span class="hs-identifier hs-type">typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536196"><span class="annot"><a href="#local-6989586621679536196"><span class="hs-identifier hs-type">proxy</span></a></span></span><span> </span><span id="local-6989586621679536195"><span class="annot"><a href="#local-6989586621679536195"><span class="hs-identifier hs-type">a</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536195"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536196"><span class="hs-identifier hs-type">proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536195"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-117"></span><span id="typeRep"><span class="annot"><span class="annottext">typeRep :: forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.html#typeRep"><span class="hs-identifier hs-var hs-var">typeRep</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">proxy a -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span>
</span><span id="line-118"></span><span>
</span><span id="line-119"></span><span class="hs-comment">-- | Show a type representation</span><span>
</span><span id="line-120"></span><span class="annot"><a href="Data.Typeable.html#showsTypeRep"><span class="hs-identifier hs-type">showsTypeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Show.html#ShowS"><span class="hs-identifier hs-type">ShowS</span></a></span><span>
</span><span id="line-121"></span><span id="showsTypeRep"><span class="annot"><span class="annottext">showsTypeRep :: TypeRep -&gt; ShowS
</span><a href="Data.Typeable.html#showsTypeRep"><span class="hs-identifier hs-var hs-var">showsTypeRep</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; ShowS
forall a. Show a =&gt; a -&gt; ShowS
</span><a href="GHC.Show.html#shows"><span class="hs-identifier hs-var">shows</span></a></span><span>
</span><span id="line-122"></span><span>
</span><span id="line-123"></span><span class="hs-comment">-- | The type-safe cast operation</span><span>
</span><span id="line-124"></span><span class="annot"><a href="Data.Typeable.html#cast"><span class="hs-identifier hs-type">cast</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536398"><span class="annot"><a href="#local-6989586621679536398"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span id="local-6989586621679536397"><span class="annot"><a href="#local-6989586621679536397"><span class="hs-identifier hs-type">b</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536398"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536397"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536398"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536397"><span class="hs-identifier hs-type">b</span></a></span><span>
</span><span id="line-125"></span><span id="cast"><span class="annot"><span class="annottext">cast :: forall a b. (Typeable a, Typeable b) =&gt; a -&gt; Maybe b
</span><a href="Data.Typeable.html#cast"><span class="hs-identifier hs-var hs-var">cast</span></a></span></span><span> </span><span id="local-6989586621679536187"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679536187"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-126"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">a :~~: b
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536184"><span class="hs-identifier hs-var">ta</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep b
</span><a href="#local-6989586621679536182"><span class="hs-identifier hs-var">tb</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Maybe a
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679536187"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-127"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe b
forall a. Maybe a
</span><a href="GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-128"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-129"></span><span>    </span><span id="local-6989586621679536184"><span class="annot"><span class="annottext">ta :: TypeRep a
</span><a href="#local-6989586621679536184"><span class="hs-identifier hs-var hs-var">ta</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep a
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536398"><span class="hs-identifier hs-type">a</span></a></span><span>
</span><span id="line-130"></span><span>    </span><span id="local-6989586621679536182"><span class="annot"><span class="annottext">tb :: TypeRep b
</span><a href="#local-6989586621679536182"><span class="hs-identifier hs-var hs-var">tb</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep b
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536397"><span class="hs-identifier hs-type">b</span></a></span><span>
</span><span id="line-131"></span><span>
</span><span id="line-132"></span><span class="hs-comment">-- | Extract a witness of equality of two types</span><span>
</span><span id="line-133"></span><span class="hs-comment">--</span><span>
</span><span id="line-134"></span><span class="hs-comment">-- @since 4.7.0.0</span><span>
</span><span id="line-135"></span><span class="annot"><a href="Data.Typeable.html#eqT"><span class="hs-identifier hs-type">eqT</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536385"><span class="annot"><a href="#local-6989586621679536385"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span id="local-6989586621679536384"><span class="annot"><a href="#local-6989586621679536384"><span class="hs-identifier hs-type">b</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536385"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536384"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536385"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~%3A"><span class="hs-operator hs-type">:~:</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536384"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-136"></span><span id="eqT"><span class="annot"><span class="annottext">eqT :: forall {k} (a :: k) (b :: k).
(Typeable a, Typeable b) =&gt;
Maybe (a :~: b)
</span><a href="Data.Typeable.html#eqT"><span class="hs-identifier hs-var hs-var">eqT</span></a></span></span><span>
</span><span id="line-137"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">a :~~: b
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536174"><span class="hs-identifier hs-var">ta</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep b
</span><a href="#local-6989586621679536173"><span class="hs-identifier hs-var">tb</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a :~: a) -&gt; Maybe (a :~: a)
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">a :~: a
forall {k} (a :: k). a :~: a
</span><a href="Data.Type.Equality.html#Refl"><span class="hs-identifier hs-var">Refl</span></a></span><span>
</span><span id="line-138"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe (a :~: b)
forall a. Maybe a
</span><a href="GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-139"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-140"></span><span>    </span><span id="local-6989586621679536174"><span class="annot"><span class="annottext">ta :: TypeRep a
</span><a href="#local-6989586621679536174"><span class="hs-identifier hs-var hs-var">ta</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep a
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536385"><span class="hs-identifier hs-type">a</span></a></span><span>
</span><span id="line-141"></span><span>    </span><span id="local-6989586621679536173"><span class="annot"><span class="annottext">tb :: TypeRep b
</span><a href="#local-6989586621679536173"><span class="hs-identifier hs-var hs-var">tb</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep b
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536384"><span class="hs-identifier hs-type">b</span></a></span><span>
</span><span id="line-142"></span><span>
</span><span id="line-143"></span><span class="hs-comment">-- | A flexible variation parameterised in a type constructor</span><span>
</span><span id="line-144"></span><span class="annot"><a href="Data.Typeable.html#gcast"><span class="hs-identifier hs-type">gcast</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536376"><span class="annot"><a href="#local-6989586621679536376"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span id="local-6989586621679536375"><span class="annot"><a href="#local-6989586621679536375"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span id="local-6989586621679536374"><span class="annot"><a href="#local-6989586621679536374"><span class="hs-identifier hs-type">c</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536376"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536375"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536374"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536376"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536374"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536375"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-145"></span><span id="gcast"><span class="annot"><span class="annottext">gcast :: forall {k} (a :: k) (b :: k) (c :: k -&gt; *).
(Typeable a, Typeable b) =&gt;
c a -&gt; Maybe (c b)
</span><a href="Data.Typeable.html#gcast"><span class="hs-identifier hs-var hs-var">gcast</span></a></span></span><span> </span><span id="local-6989586621679536166"><span class="annot"><span class="annottext">c a
</span><a href="#local-6989586621679536166"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">((a :~: b) -&gt; c b) -&gt; Maybe (a :~: b) -&gt; Maybe (c b)
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span class="annot"><span class="annottext">a :~: b
</span><a href="Data.Type.Equality.html#Refl"><span class="hs-identifier hs-var">Refl</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">c a
c b
</span><a href="#local-6989586621679536166"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Maybe (a :~: b)
forall {k} (a :: k) (b :: k).
(Typeable a, Typeable b) =&gt;
Maybe (a :~: b)
</span><a href="Data.Typeable.html#eqT"><span class="hs-identifier hs-var">eqT</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536376"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~%3A"><span class="hs-operator hs-type">:~:</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536375"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-146"></span><span>
</span><span id="line-147"></span><span class="hs-comment">-- | Cast over @k1 -&gt; k2@</span><span>
</span><span id="line-148"></span><span class="annot"><a href="Data.Typeable.html#gcast1"><span class="hs-identifier hs-type">gcast1</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536362"><span class="annot"><a href="#local-6989586621679536362"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span id="local-6989586621679536364"><span class="annot"><a href="#local-6989586621679536364"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span id="local-6989586621679536363"><span class="annot"><a href="#local-6989586621679536363"><span class="hs-identifier hs-type">t'</span></a></span></span><span> </span><span id="local-6989586621679536361"><span class="annot"><a href="#local-6989586621679536361"><span class="hs-identifier hs-type">a</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536364"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536363"><span class="hs-identifier hs-type">t'</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-149"></span><span>       </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536362"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536364"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536361"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536362"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536363"><span class="hs-identifier hs-type">t'</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536361"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-150"></span><span id="gcast1"><span class="annot"><span class="annottext">gcast1 :: forall {k} {k} (c :: k -&gt; *) (t :: k -&gt; k) (t' :: k -&gt; k) (a :: k).
(Typeable t, Typeable t') =&gt;
c (t a) -&gt; Maybe (c (t' a))
</span><a href="Data.Typeable.html#gcast1"><span class="hs-identifier hs-var hs-var">gcast1</span></a></span></span><span> </span><span id="local-6989586621679536159"><span class="annot"><span class="annottext">c (t a)
</span><a href="#local-6989586621679536159"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">((t :~: t') -&gt; c (t' a)) -&gt; Maybe (t :~: t') -&gt; Maybe (c (t' a))
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span class="annot"><span class="annottext">t :~: t'
</span><a href="Data.Type.Equality.html#Refl"><span class="hs-identifier hs-var">Refl</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">c (t a)
c (t' a)
</span><a href="#local-6989586621679536159"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Maybe (t :~: t')
forall {k} (a :: k) (b :: k).
(Typeable a, Typeable b) =&gt;
Maybe (a :~: b)
</span><a href="Data.Typeable.html#eqT"><span class="hs-identifier hs-var">eqT</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536364"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~%3A"><span class="hs-operator hs-type">:~:</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536363"><span class="hs-identifier hs-type">t'</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-151"></span><span>
</span><span id="line-152"></span><span class="hs-comment">-- | Cast over @k1 -&gt; k2 -&gt; k3@</span><span>
</span><span id="line-153"></span><span class="annot"><a href="Data.Typeable.html#gcast2"><span class="hs-identifier hs-type">gcast2</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536349"><span class="annot"><a href="#local-6989586621679536349"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span id="local-6989586621679536351"><span class="annot"><a href="#local-6989586621679536351"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span id="local-6989586621679536350"><span class="annot"><a href="#local-6989586621679536350"><span class="hs-identifier hs-type">t'</span></a></span></span><span> </span><span id="local-6989586621679536348"><span class="annot"><a href="#local-6989586621679536348"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span id="local-6989586621679536347"><span class="annot"><a href="#local-6989586621679536347"><span class="hs-identifier hs-type">b</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536351"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536350"><span class="hs-identifier hs-type">t'</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-154"></span><span>       </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536349"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536351"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536348"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536347"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536349"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536350"><span class="hs-identifier hs-type">t'</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536348"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536347"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-155"></span><span id="gcast2"><span class="annot"><span class="annottext">gcast2 :: forall {k} {k} {k} (c :: k -&gt; *) (t :: k -&gt; k -&gt; k)
       (t' :: k -&gt; k -&gt; k) (a :: k) (b :: k).
(Typeable t, Typeable t') =&gt;
c (t a b) -&gt; Maybe (c (t' a b))
</span><a href="Data.Typeable.html#gcast2"><span class="hs-identifier hs-var hs-var">gcast2</span></a></span></span><span> </span><span id="local-6989586621679536152"><span class="annot"><span class="annottext">c (t a b)
</span><a href="#local-6989586621679536152"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">((t :~: t') -&gt; c (t' a b))
-&gt; Maybe (t :~: t') -&gt; Maybe (c (t' a b))
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span class="annot"><span class="annottext">t :~: t'
</span><a href="Data.Type.Equality.html#Refl"><span class="hs-identifier hs-var">Refl</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">c (t a b)
c (t' a b)
</span><a href="#local-6989586621679536152"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Maybe (t :~: t')
forall {k} (a :: k) (b :: k).
(Typeable a, Typeable b) =&gt;
Maybe (a :~: b)
</span><a href="Data.Typeable.html#eqT"><span class="hs-identifier hs-var">eqT</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679536351"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="Data.Type.Equality.html#%3A~%3A"><span class="hs-operator hs-type">:~:</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536350"><span class="hs-identifier hs-type">t'</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-156"></span><span>
</span><span id="line-157"></span><span class="hs-comment">-- | Applies a type to a function type. Returns: @Just u@ if the first argument</span><span>
</span><span id="line-158"></span><span class="hs-comment">-- represents a function of type @t -&gt; u@ and the second argument represents a</span><span>
</span><span id="line-159"></span><span class="hs-comment">-- function of type @t@. Otherwise, returns @Nothing@.</span><span>
</span><span id="line-160"></span><span class="annot"><a href="Data.Typeable.html#funResultTy"><span class="hs-identifier hs-type">funResultTy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-161"></span><span id="funResultTy"><span class="annot"><span class="annottext">funResultTy :: TypeRep -&gt; TypeRep -&gt; Maybe TypeRep
</span><a href="Data.Typeable.html#funResultTy"><span class="hs-identifier hs-var hs-var">funResultTy</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span> </span><span id="local-6989586621679536150"><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536150"><span class="hs-identifier hs-var">f</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span> </span><span id="local-6989586621679536146"><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536146"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-162"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">* :~~: k
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TypeRep (*)
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">TypeRep (*) -&gt; TypeRep k -&gt; Maybe (* :~~: k)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep k
forall k (a :: k). TypeRep a -&gt; TypeRep k
</span><a href="Data.Typeable.Internal.html#typeRepKind"><span class="hs-identifier hs-var">I.typeRepKind</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536150"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-163"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Fun"><span class="hs-identifier hs-type">I.Fun</span></a></span><span> </span><span id="local-6989586621679536139"><span class="annot"><span class="annottext">TypeRep arg
</span><a href="#local-6989586621679536139"><span class="hs-identifier hs-var">arg</span></a></span></span><span> </span><span id="local-6989586621679536138"><span class="annot"><span class="annottext">TypeRep res
</span><a href="#local-6989586621679536138"><span class="hs-identifier hs-var">res</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536150"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-164"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">arg :~~: a
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep arg
</span><a href="#local-6989586621679536139"><span class="hs-identifier hs-var">arg</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep arg -&gt; TypeRep a -&gt; Maybe (arg :~~: a)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536146"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-165"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; Maybe TypeRep
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TypeRep res -&gt; TypeRep
forall k (a :: k). TypeRep a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-var">I.SomeTypeRep</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep res
</span><a href="#local-6989586621679536138"><span class="hs-identifier hs-var">res</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-166"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe TypeRep
forall a. Maybe a
</span><a href="GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-167"></span><span>
</span><span id="line-168"></span><span class="hs-comment">-- | Build a function type.</span><span>
</span><span id="line-169"></span><span class="annot"><a href="Data.Typeable.html#mkFunTy"><span class="hs-identifier hs-type">mkFunTy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-170"></span><span id="mkFunTy"><span class="annot"><span class="annottext">mkFunTy :: TypeRep -&gt; TypeRep -&gt; TypeRep
</span><a href="Data.Typeable.html#mkFunTy"><span class="hs-identifier hs-var hs-var">mkFunTy</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span> </span><span id="local-6989586621679536135"><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536135"><span class="hs-identifier hs-var">arg</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span> </span><span id="local-6989586621679536129"><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536129"><span class="hs-identifier hs-var">res</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-171"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">k :~~: *
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep k
forall k (a :: k). TypeRep a -&gt; TypeRep k
</span><a href="Data.Typeable.Internal.html#typeRepKind"><span class="hs-identifier hs-var">I.typeRepKind</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536135"><span class="hs-identifier hs-var">arg</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep k -&gt; TypeRep (*) -&gt; Maybe (k :~~: *)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep (*)
</span><a href="#local-6989586621679536125"><span class="hs-identifier hs-var">liftedTy</span></a></span><span>
</span><span id="line-172"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="annot"><span class="annottext">k :~~: *
</span><a href="Data.Type.Equality.html#HRefl"><span class="hs-identifier hs-var">HRefl</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep k
forall k (a :: k). TypeRep a -&gt; TypeRep k
</span><a href="Data.Typeable.Internal.html#typeRepKind"><span class="hs-identifier hs-var">I.typeRepKind</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536129"><span class="hs-identifier hs-var">res</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep k -&gt; TypeRep (*) -&gt; Maybe (k :~~: *)
forall k1 k2 (a :: k1) (b :: k2).
TypeRep a -&gt; TypeRep b -&gt; Maybe (a :~~: b)
</span><a href="Data.Typeable.Internal.html#eqTypeRep"><span class="hs-operator hs-var">`I.eqTypeRep`</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep (*)
</span><a href="#local-6989586621679536125"><span class="hs-identifier hs-var">liftedTy</span></a></span><span>
</span><span id="line-173"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep (a -&gt; a) -&gt; TypeRep
forall k (a :: k). TypeRep a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-var">I.SomeTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TypeRep a -&gt; TypeRep a -&gt; TypeRep (a -&gt; a)
forall k (fun :: k) arg res.
(k ~ *, fun ~~ (arg -&gt; res)) =&gt;
TypeRep arg -&gt; TypeRep res -&gt; TypeRep fun
</span><a href="Data.Typeable.Internal.html#Fun"><span class="hs-identifier hs-var">I.Fun</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
TypeRep a
</span><a href="#local-6989586621679536135"><span class="hs-identifier hs-var">arg</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
TypeRep a
</span><a href="#local-6989586621679536129"><span class="hs-identifier hs-var">res</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-174"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-175"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Char] -&gt; TypeRep
forall a. HasCallStack =&gt; [Char] -&gt; a
</span><a href="GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">([Char] -&gt; TypeRep) -&gt; [Char] -&gt; TypeRep
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">[Char]
</span><span class="hs-string">&quot;mkFunTy: Attempted to construct function type from non-lifted &quot;</span></span><span class="annot"><span class="annottext">[Char] -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span>
</span><span id="line-176"></span><span>            </span><span class="annot"><span class="annottext">[Char]
</span><span class="hs-string">&quot;type: arg=&quot;</span></span><span class="annot"><span class="annottext">[Char] -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span class="annot"><span class="annottext">TypeRep a -&gt; [Char]
forall a. Show a =&gt; a -&gt; [Char]
</span><a href="GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536135"><span class="hs-identifier hs-var">arg</span></a></span><span class="annot"><span class="annottext">[Char] -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span class="annot"><span class="annottext">[Char]
</span><span class="hs-string">&quot;, res=&quot;</span></span><span class="annot"><span class="annottext">[Char] -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span class="annot"><span class="annottext">TypeRep a -&gt; [Char]
forall a. Show a =&gt; a -&gt; [Char]
</span><a href="GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536129"><span class="hs-identifier hs-var">res</span></a></span><span>
</span><span id="line-177"></span><span>  </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679536125"><span class="annot"><span class="annottext">liftedTy :: TypeRep (*)
</span><a href="#local-6989586621679536125"><span class="hs-identifier hs-var hs-var">liftedTy</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep (*)
forall {k} (a :: k). Typeable a =&gt; TypeRep a
</span><a href="Data.Typeable.Internal.html#typeRep"><span class="hs-identifier hs-var">I.typeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#TypeRep"><span class="hs-identifier hs-type">I.TypeRep</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span>
</span><span id="line-178"></span><span>
</span><span id="line-179"></span><span class="hs-comment">-- | Splits a type constructor application. Note that if the type constructor is</span><span>
</span><span id="line-180"></span><span class="hs-comment">-- polymorphic, this will not return the kinds that were used.</span><span>
</span><span id="line-181"></span><span class="annot"><a href="Data.Typeable.html#splitTyConApp"><span class="hs-identifier hs-type">splitTyConApp</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#TyCon"><span class="hs-identifier hs-type">TyCon</span></a></span><span class="hs-special">,</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-182"></span><span id="splitTyConApp"><span class="annot"><span class="annottext">splitTyConApp :: TypeRep -&gt; (TyCon, [TypeRep])
</span><a href="Data.Typeable.html#splitTyConApp"><span class="hs-identifier hs-var hs-var">splitTyConApp</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Typeable.Internal.html#SomeTypeRep"><span class="hs-identifier hs-type">I.SomeTypeRep</span></a></span><span> </span><span id="local-6989586621679536115"><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536115"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep a -&gt; (TyCon, [TypeRep])
forall {k} (a :: k). TypeRep a -&gt; (TyCon, [TypeRep])
</span><a href="Data.Typeable.Internal.html#splitApps"><span class="hs-identifier hs-var">I.splitApps</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep a
</span><a href="#local-6989586621679536115"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-183"></span><span>
</span><span id="line-184"></span><span class="hs-comment">-- | Observe the argument types of a type representation</span><span>
</span><span id="line-185"></span><span class="annot"><a href="Data.Typeable.html#typeRepArgs"><span class="hs-identifier hs-type">typeRepArgs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-186"></span><span id="typeRepArgs"><span class="annot"><span class="annottext">typeRepArgs :: TypeRep -&gt; [TypeRep]
</span><a href="Data.Typeable.html#typeRepArgs"><span class="hs-identifier hs-var hs-var">typeRepArgs</span></a></span></span><span> </span><span id="local-6989586621679536113"><span class="annot"><span class="annottext">TypeRep
</span><a href="#local-6989586621679536113"><span class="hs-identifier hs-var">ty</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; (TyCon, [TypeRep])
</span><a href="Data.Typeable.html#splitTyConApp"><span class="hs-identifier hs-var">splitTyConApp</span></a></span><span> </span><span class="annot"><span class="annottext">TypeRep
</span><a href="#local-6989586621679536113"><span class="hs-identifier hs-var">ty</span></a></span><span> </span><span class="hs-keyword">of</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TyCon
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679536112"><span class="annot"><span class="annottext">[TypeRep]
</span><a href="#local-6989586621679536112"><span class="hs-identifier hs-var">args</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[TypeRep]
</span><a href="#local-6989586621679536112"><span class="hs-identifier hs-var">args</span></a></span><span>
</span><span id="line-187"></span><span>
</span><span id="line-188"></span><span class="hs-comment">-- | Observe the type constructor of a quantified type representation.</span><span>
</span><span id="line-189"></span><span class="annot"><a href="Data.Typeable.html#typeRepTyCon"><span class="hs-identifier hs-type">typeRepTyCon</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#TyCon"><span class="hs-identifier hs-type">TyCon</span></a></span><span>
</span><span id="line-190"></span><span id="typeRepTyCon"><span class="annot"><span class="annottext">typeRepTyCon :: TypeRep -&gt; TyCon
</span><a href="Data.Typeable.html#typeRepTyCon"><span class="hs-identifier hs-var hs-var">typeRepTyCon</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; TyCon
</span><a href="Data.Typeable.Internal.html#someTypeRepTyCon"><span class="hs-identifier hs-var">I.someTypeRepTyCon</span></a></span><span>
</span><span id="line-191"></span><span>
</span><span id="line-192"></span><span class="hs-comment">-- | Takes a value of type @a@ and returns a concrete representation</span><span>
</span><span id="line-193"></span><span class="hs-comment">-- of that type.</span><span>
</span><span id="line-194"></span><span class="hs-comment">--</span><span>
</span><span id="line-195"></span><span class="hs-comment">-- @since 4.7.0.0</span><span>
</span><span id="line-196"></span><span class="annot"><a href="Data.Typeable.html#typeRepFingerprint"><span class="hs-identifier hs-type">typeRepFingerprint</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Fingerprint.Type.html#Fingerprint"><span class="hs-identifier hs-type">Fingerprint</span></a></span><span>
</span><span id="line-197"></span><span id="typeRepFingerprint"><span class="annot"><span class="annottext">typeRepFingerprint :: TypeRep -&gt; Fingerprint
</span><a href="Data.Typeable.html#typeRepFingerprint"><span class="hs-identifier hs-var hs-var">typeRepFingerprint</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; Fingerprint
</span><a href="Data.Typeable.Internal.html#someTypeRepFingerprint"><span class="hs-identifier hs-var">I.someTypeRepFingerprint</span></a></span><span>
</span><span id="line-198"></span><span>
</span><span id="line-199"></span><span class="hs-comment">-- | Force a 'TypeRep' to normal form.</span><span>
</span><span id="line-200"></span><span class="annot"><a href="Data.Typeable.html#rnfTypeRep"><span class="hs-identifier hs-type">rnfTypeRep</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-201"></span><span id="rnfTypeRep"><span class="annot"><span class="annottext">rnfTypeRep :: TypeRep -&gt; ()
</span><a href="Data.Typeable.html#rnfTypeRep"><span class="hs-identifier hs-var hs-var">rnfTypeRep</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TypeRep -&gt; ()
</span><a href="Data.Typeable.Internal.html#rnfSomeTypeRep"><span class="hs-identifier hs-var">I.rnfSomeTypeRep</span></a></span><span>
</span><span id="line-202"></span><span>
</span><span id="line-203"></span><span>
</span><span id="line-204"></span><span class="hs-comment">-- Keeping backwards-compatibility</span><span>
</span><span id="line-205"></span><span class="annot"><a href="Data.Typeable.html#typeOf1"><span class="hs-identifier hs-type">typeOf1</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536301"><span class="annot"><a href="#local-6989586621679536301"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536300"><span class="annot"><a href="#local-6989586621679536300"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536301"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536301"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536300"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-206"></span><span id="typeOf1"><span class="annot"><span class="annottext">typeOf1 :: forall (t :: * -&gt; *) a. Typeable t =&gt; t a -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf1"><span class="hs-identifier hs-var hs-var">typeOf1</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536301"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-207"></span><span>
</span><span id="line-208"></span><span class="annot"><a href="Data.Typeable.html#typeOf2"><span class="hs-identifier hs-type">typeOf2</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536297"><span class="annot"><a href="#local-6989586621679536297"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536296"><span class="annot"><a href="#local-6989586621679536296"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536295"><span class="annot"><a href="#local-6989586621679536295"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span> </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536297"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536297"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536296"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536295"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-209"></span><span id="typeOf2"><span class="annot"><span class="annottext">typeOf2 :: forall (t :: * -&gt; * -&gt; *) a b. Typeable t =&gt; t a b -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf2"><span class="hs-identifier hs-var hs-var">typeOf2</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536297"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-210"></span><span>
</span><span id="line-211"></span><span class="annot"><a href="Data.Typeable.html#typeOf3"><span class="hs-identifier hs-type">typeOf3</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536291"><span class="annot"><a href="#local-6989586621679536291"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536290"><span class="annot"><a href="#local-6989586621679536290"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536289"><span class="annot"><a href="#local-6989586621679536289"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536288"><span class="annot"><a href="#local-6989586621679536288"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span>
</span><span id="line-212"></span><span>           </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536291"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536291"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536290"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536289"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536288"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-213"></span><span id="typeOf3"><span class="annot"><span class="annottext">typeOf3 :: forall (t :: * -&gt; * -&gt; * -&gt; *) a b c.
Typeable t =&gt;
t a b c -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf3"><span class="hs-identifier hs-var hs-var">typeOf3</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b c
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536291"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-214"></span><span>
</span><span id="line-215"></span><span class="annot"><a href="Data.Typeable.html#typeOf4"><span class="hs-identifier hs-type">typeOf4</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536283"><span class="annot"><a href="#local-6989586621679536283"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536282"><span class="annot"><a href="#local-6989586621679536282"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536281"><span class="annot"><a href="#local-6989586621679536281"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536280"><span class="annot"><a href="#local-6989586621679536280"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536279"><span class="annot"><a href="#local-6989586621679536279"><span class="hs-identifier hs-type">d</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span>
</span><span id="line-216"></span><span>           </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536283"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536283"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536282"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536281"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536280"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536279"><span class="hs-identifier hs-type">d</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-217"></span><span id="typeOf4"><span class="annot"><span class="annottext">typeOf4 :: forall (t :: * -&gt; * -&gt; * -&gt; * -&gt; *) a b c d.
Typeable t =&gt;
t a b c d -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf4"><span class="hs-identifier hs-var hs-var">typeOf4</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b c d
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536283"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-218"></span><span>
</span><span id="line-219"></span><span class="annot"><a href="Data.Typeable.html#typeOf5"><span class="hs-identifier hs-type">typeOf5</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536273"><span class="annot"><a href="#local-6989586621679536273"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536272"><span class="annot"><a href="#local-6989586621679536272"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536271"><span class="annot"><a href="#local-6989586621679536271"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536270"><span class="annot"><a href="#local-6989586621679536270"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536269"><span class="annot"><a href="#local-6989586621679536269"><span class="hs-identifier hs-type">d</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536268"><span class="annot"><a href="#local-6989586621679536268"><span class="hs-identifier hs-type">e</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span>
</span><span id="line-220"></span><span>           </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536273"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536273"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536272"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536271"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536270"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536269"><span class="hs-identifier hs-type">d</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536268"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-221"></span><span id="typeOf5"><span class="annot"><span class="annottext">typeOf5 :: forall (t :: * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; *) a b c d e.
Typeable t =&gt;
t a b c d e -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf5"><span class="hs-identifier hs-var hs-var">typeOf5</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b c d e
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536273"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-222"></span><span>
</span><span id="line-223"></span><span class="annot"><a href="Data.Typeable.html#typeOf6"><span class="hs-identifier hs-type">typeOf6</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536261"><span class="annot"><a href="#local-6989586621679536261"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536260"><span class="annot"><a href="#local-6989586621679536260"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536259"><span class="annot"><a href="#local-6989586621679536259"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536258"><span class="annot"><a href="#local-6989586621679536258"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-224"></span><span>                    </span><span class="hs-special">(</span><span id="local-6989586621679536257"><span class="annot"><a href="#local-6989586621679536257"><span class="hs-identifier hs-type">d</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536256"><span class="annot"><a href="#local-6989586621679536256"><span class="hs-identifier hs-type">e</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536255"><span class="annot"><a href="#local-6989586621679536255"><span class="hs-identifier hs-type">f</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span>
</span><span id="line-225"></span><span>           </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536261"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536261"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536260"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536259"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536258"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536257"><span class="hs-identifier hs-type">d</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536256"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536255"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-226"></span><span id="typeOf6"><span class="annot"><span class="annottext">typeOf6 :: forall (t :: * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; *) a b c d e f.
Typeable t =&gt;
t a b c d e f -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf6"><span class="hs-identifier hs-var hs-var">typeOf6</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b c d e f
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536261"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-227"></span><span>
</span><span id="line-228"></span><span class="annot"><a href="Data.Typeable.html#typeOf7"><span class="hs-identifier hs-type">typeOf7</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679536247"><span class="annot"><a href="#local-6989586621679536247"><span class="hs-identifier hs-type">t</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536246"><span class="annot"><a href="#local-6989586621679536246"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536245"><span class="annot"><a href="#local-6989586621679536245"><span class="hs-identifier hs-type">b</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536244"><span class="annot"><a href="#local-6989586621679536244"><span class="hs-identifier hs-type">c</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-229"></span><span>                    </span><span class="hs-special">(</span><span id="local-6989586621679536243"><span class="annot"><a href="#local-6989586621679536243"><span class="hs-identifier hs-type">d</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536242"><span class="annot"><a href="#local-6989586621679536242"><span class="hs-identifier hs-type">e</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536241"><span class="annot"><a href="#local-6989586621679536241"><span class="hs-identifier hs-type">f</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679536240"><span class="annot"><a href="#local-6989586621679536240"><span class="hs-identifier hs-type">g</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Type"><span class="hs-identifier hs-type">Type</span></a></span><span class="hs-special">)</span><span class="hs-operator">.</span><span>
</span><span id="line-230"></span><span>           </span><span class="annot"><a href="Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536247"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679536247"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536246"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536245"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536244"><span class="hs-identifier hs-type">c</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536243"><span class="hs-identifier hs-type">d</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536242"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536241"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536240"><span class="hs-identifier hs-type">g</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Typeable.html#TypeRep"><span class="hs-identifier hs-type">TypeRep</span></a></span><span>
</span><span id="line-231"></span><span id="typeOf7"><span class="annot"><span class="annottext">typeOf7 :: forall (t :: * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; * -&gt; *) a b c d e f g.
Typeable t =&gt;
t a b c d e f g -&gt; TypeRep
</span><a href="Data.Typeable.html#typeOf7"><span class="hs-identifier hs-var hs-var">typeOf7</span></a></span></span><span> </span><span class="annot"><span class="annottext">t a b c d e f g
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TypeRep
forall {k} (proxy :: k -&gt; *) (a :: k).
Typeable a =&gt;
proxy a -&gt; TypeRep
</span><a href="Data.Typeable.Internal.html#someTypeRep"><span class="hs-identifier hs-var">I.someTypeRep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Proxy.html#Proxy"><span class="hs-identifier hs-type">Proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679536247"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-232"></span></pre></body></html>